
import 'package:flutter/material.dart';

class Global {
  //获取屏幕大小（以调节卡片内容尺寸）
  static double screenWidth ;

  static String currentId = "";
  static String currentPhoneNum = "";
  static String currentEmail = "";

  // 统一并自定义文本框的风格
  OutlineInputBorder diyColorTextFieldBorder(Color color) {
    return OutlineInputBorder(
        borderRadius: BorderRadius.circular(16.0),
        borderSide: BorderSide(
            color: color,
            width: 3.0
        )
    );
  }

  static Future init() async{
    screenWidth = 0.0;
    currentId = "";
    currentPhoneNum = "";
    currentEmail = "";
  }


}